package com.yb0os1;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoConsumer {

    @DubboReference(version = "1.0.0", timeout = 1000)
    private DemoService demoService;

    @GetMapping("/fun-test")
    public String funTest() {
        return demoService.getString();
    }

}